
<script type="text/javascript" charset="utf-8" src="__editor__/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__editor__/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="__editor__/dialogs/image/image.js"></script>
<script type="text/javascript" charset="utf-8" src="__editor__/lang/zh-cn/zh-cn.js"></script>


<!-- 实例化编辑器 -->
<script type="text/javascript">
    var ue = UE.getEditor('content', {
        autoHeightEnabled: false,
        autoFloatEnabled: true,
        scaleEnabled:true,//是否可以拉伸长高,默认true(当开启时，自动长高失效)
        elementPathEnabled:false,
        wordCount:true,
        autoTransWordToList:false,
        initialFrameHeight:600,
        retainOnlyLabelPasted: false,
        catchRemoteImageEnable: false,//rasimni asli adres buyiqa sahlax
        allHtmlEnabled: false,//提交到后台的数据是否包含整个html字符串
        zIndex : 0
        ,maximumWords:50000,      //允许的最大字符数
        toolbars:[
            [
                "source",
                "bold",
                "italic",
                "undo",
                "redo",
                "forecolor",
                "backcolor",
                "justifyleft",
                "justifycenter",
                "justifyright",
                "justifyjustify",
                "directionalityrtl",
                'directionalityltr',
                "indent",
                "removeformat","imagenone","imageleft","imageright",'imagecenter',
                "insertimage" ,"simpleupload","emotion"
                ,"insertvideo","music","attachment","customstyle",'paragraph','fontfamily',"fontsize",'rowspacingtop',
                'rowspacingbottom','lineheight',"map","insertframe","pagebreak","template","date",
                "time","preview","searchreplace","fullscreen"
            ]
        ]
    });

    UE.getEditor('content').addListener('beforefullscreenchange',function(event,isFullScreen){
        if(isFullScreen){
            $(function () {
              $('.navbar-default').css({
                  top:-52
              })
            })
        }else {
            $(function () {
                $('.navbar-default').css({
                    top:0
                })
            })
        }
    });
    var ue1 = UE.getEditor('content1', {
        autoHeightEnabled: false,
        autoFloatEnabled: true,
        scaleEnabled:true,//是否可以拉伸长高,默认true(当开启时，自动长高失效)
        elementPathEnabled:false,
        wordCount:true,
        autoTransWordToList:false,
        initialFrameHeight:600,
        retainOnlyLabelPasted: false,
        catchRemoteImageEnable: true,//rasimni mulazimitirha quxurux
        zIndex : 0,
        allHtmlEnabled: false,//提交到后台的数据是否包含整个html字符串
        maximumWords:50000,      //允许的最大字符数
        toolbars:[
            [
                "source",
                "bold",
                "italic",
                "undo",
                "redo",
                "forecolor",
                "backcolor",
                "justifyleft",
                "justifycenter",
                "justifyright",
                "justifyjustify",
                "directionalityrtl",
                'directionalityltr',
                "indent",
                "removeformat","imagenone","imageleft","imageright",'imagecenter',
                "insertimage" ,"simpleupload","emotion"
                ,"insertvideo","music","attachment","customstyle",'paragraph','fontfamily',"fontsize",'rowspacingtop',
                'rowspacingbottom','lineheight',"map","insertframe","pagebreak","template","date",
                "time","preview","searchreplace","fullscreen"
            ]
        ]
    });
    UE.getEditor('content1').addListener('beforefullscreenchange',function(event,isFullScreen){
        if(isFullScreen){
            $(function () {
                $('.navbar-default').css({
                    top:-52
                })
            })
        }else {
            $(function () {
                $('.navbar-default').css({
                    top:0
                })
            })
        }
    });
</script>